package modellayer;

/**
 * The Class Item.
 *@author Benjamin Ørskov
 *@author Lasse Lambertsen
 *@author Ole Kirk
 *@author Søren Søgaard
 */
public class Item {

	/** The type. */
	private String type;

	/** The item id. */
	private int itemID;

	/** The price. */
	private Double price;

	/** The amount. */
	private Integer amount;

	/**
	 * Instantiates a new item.
	 *
	 * @param type
	 *            the type
	 * @param itemID
	 *            the item id
	 * @param price
	 *            the price
	 * @param amount
	 *            the amount
	 */
	public Item(String type, int itemID, Double price, Integer amount) {
		this.type = type;
		this.itemID = itemID;
		this.price = price;
		this.amount = amount;
	}

	/**
	 * Gets the amount.
	 *
	 * @return the amount
	 */
	public int getAmount() {
		return amount;
	}

	/**
	 * Sets the amount.
	 *
	 * @param amount
	 *            the new amount
	 */
	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	/**
	 * Gets the price.
	 *
	 * @return the price
	 */
	public Double getPrice() {
		return price;
	}

	/**
	 * Sets the price.
	 *
	 * @param price
	 *            the new price
	 */
	public void setPrice(Double price) {
		this.price = price;
	}

	/**
	 * Gets the item id.
	 *
	 * @return the item id
	 */
	public int getItemID() {
		return itemID;
	}

	/**
	 * Sets the item id.
	 *
	 * @param itemID
	 *            the new item id
	 */
	public void setItemID(int itemID) {
		this.itemID = itemID;
	}

	/**
	 * Gets the type.
	 *
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * Sets the type.
	 *
	 * @param type
	 *            the new type
	 */
	public void setType(String type) {
		this.type = type;
	}

	/*
	 * (non-Javadoc)
	 *
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Pris: " + price + "\nID: " + itemID + "\nType: " + type;
	}
}